import { Navigate } from 'react-router-dom'
import Counter from '../pages/Counter'
import TodoList from '../pages/TodoList'
import UserSearch from '../pages/UserSearch'

const routes = [
  {
    path: '/counter',
    element: <Counter/>
  },
  {
    path: '/todolist',
    element: <TodoList/>
  },
  {
    path: '/usersearch',
    element: <UserSearch/>
  },
  {
    path: '/',
    element: <Navigate to="/counter"/>
  },
]

export default routes